m = eval(input())
for i in range(1,m+1,1):
    for k in range(0,m-i,1):
        print(' ',end = '')
    for j in range(i,0,-1):
        print(j,end = '')
    for l in range(2,i+1,1):
        print(l,end = '') 
    print()